package com.zst.demo3.service;

import com.zsr.entities.CommonResult;
import com.zsr.entities.PermissionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "zst-service-demo04")
public interface Demo4FeignService {
    @GetMapping(value = "/zst/demo4/get-permission/{id}")
    CommonResult<PermissionDTO> getPermission(@PathVariable("id") Long id);
}
